<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>用户注册</title>
    <link rel="icon" type="shortcut icon" th:href="@{/static/img/hzxy.jpg}"/>
    <link rel="stylesheet" th:href="@{/static/modules/layui/css/layui.css}">
    <link rel="stylesheet" th:href="@{/static/css/login.css}">
</head>
<body>

<div class="login-wrapper layui-anim layui-anim-scale layui-hide">
    <form class="layui-form">
        <h2>用户注册</h2>
        <div class="layui-form-item layui-input-icon-group">
            <i class="layui-icon layui-icon-username"></i>
            <input class="layui-input" id="email" name="username" placeholder="请输入邮箱账号" autocomplete="off"
                   lay-verType="tips" lay-verify="required" required/>
        </div>
        <div class="layui-form-item layui-input-icon-group">
            <i class="layui-icon layui-icon-user"></i>
            <input class="layui-input" name="nickName" placeholder="请输入用户昵称" autocomplete="off"
                   lay-verType="tips" lay-verify="required" required/>
        </div>
        <div class="layui-form-item layui-input-icon-group">
            <i class="layui-icon layui-icon-password"></i>
            <input class="layui-input" name="password" placeholder="请输入密码" type="password"
                   lay-verType="tips" lay-verify="required" required/>
        </div>
        <div class="layui-form-item layui-input-icon-group">
            <i class="layui-icon layui-icon-password"></i>
            <input class="layui-input" name="password2" placeholder="请再次输入密码" type="password"
                   lay-verType="tips" lay-verify="required|checkIsSame" required/>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
                <input class="layui-input" name="code" placeholder="请输入邮箱验证码" autocomplete="off"
                       lay-verType="tips" lay-verify="required" required/>
            </div>
            <div class="layui-inline">
                <button id="sendCheckCode" class="layui-btn layui-btn-normal" type="button">获取验证码</button>
            </div>

        </div>

        <div class="layui-form-item">
            <a th:href="@{/login}" class="layui-link">返回登录</a>
            <a th:href="@{/forget}" class="layui-link pull-right">忘记密码</a>
        </div>
        <div class="layui-form-item" style="margin-bottom: 20px;">
            <button class="layui-btn layui-btn-fluid" lay-filter="regSubmit" lay-submit>注册</button>
        </div>
    </form>
</div>

<script type="text/javascript" th:src="@{/static/modules/layui/layui.js}"></script>
<script type="text/javascript" th:src="@{/static/modules/clipboard.min.js}"></script>
<script type="text/javascript" th:src="@{/static/js/login.js}"></script>
</body>
</html>